package com.mx.zb.mng.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

import com.mx.zb.mng.bo.Tenant;
import com.mx.zb.mng.utils.db2.Page;

@Mapper
public interface TenantMapper {
    int deleteByPrimaryKey(String id);

    int insert(Tenant record);

    int insertSelective(Tenant record);

    Tenant selectByPrimaryKey(String id);

    int updateByPrimaryKeySelective(Tenant record);

    int updateByPrimaryKey(Tenant record);

	List<Tenant> findAll();

	Page<Tenant> queryPage(Tenant record);
	
	
   Tenant selectByPrimaryCode(Long code);

   List<Tenant> findTenantGroupByDate(Map map);
   
   List<Map> findTenantGroupByYear(Map map);

Page<Tenant> selectByParams(Tenant o);

Long countTenant(Tenant o);

	
}